﻿<div ng-controller="productController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li><a ui-sref="app.product.list">商品</a></li>
                <li class="active" ng-bind="breadcrumb"></li>
            </ol>
        </div>
    </div>
    <form name="_form" class="form-horizontal w5c-form" w5c-form-validate="model.validateOptions" validfail="save_fail()" novalidate role="form">
        <div class="panel">
            <div class="panel-body">
                <div class="row">
                    <label class="col-md-1 control-label" style="padding-left:0px;"><b>商品信息</b></label>
                    <div class="col-md-11">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品标题</label>
                            <div class="col-sm-8">
                                <input type="text" name="name" class="form-control input-sm" ng-model="model.name" required ng-maxlength="100">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品审核</label>
                            <div class="col-sm-2">
                                <select class="form-control input-sm" ng-model="model.audit_status">
                                    <option value="">选择审核类型</option>
                                    <option value="1">待审核中</option>
                                    <option value="2">合理上架</option>
                                    <option value="3">违规下架</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">审核原因</label>
                            <div class="col-sm-5">
                                <textarea name="audit_reason" class="form-control input-sm" ng-model="model.audit_reason"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-4 col-sm-6">
                <button type="submit" w5c-form-submit="audit()" class="btn btn-primary btn-sm" btn-loading="psdisabled" loading-text="审核中..." ng-disabled="psdisabled">
                    <i class="fa fa-save"></i> 审核
                </button>
                <button ng-click="goBack()" class="btn btn-primary btn-sm"><i class="fa fa-rotate-left"></i> 取消</button>
            </div>
        </div>
    </form>
</div>